﻿/*
 * @author: wizardc
 */

using System;

namespace Dou.Event
{
    /// <summary>
    /// 事件发送器接口
    /// </summary>
    public interface IEventDispatcher
    {
        void On(string type, Action<DEvent> listener);

        void Once(string type, Action<DEvent> listener);

        bool Has(string type);

        bool Dispatch(DEvent evt);

        void Off(string type, Action<DEvent> listener);
    }
}
